package com.fegin.client.admin;

import com.fegin.Hystrix.admin.MenuFeginHystrix;
import com.fegin.bean.common.ztree.ZtreeBean;
import com.fegin.common.ServerNameConstant;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 张子艺
 * @packge com.fegin.client
 * @data 2019-01-16 10:12
 * @project currencycloud
 */
//微服务名字                         熔断器
@FeignClient(value = ServerNameConstant.ADMIN_SERVER,fallbackFactory = MenuFeginHystrix.class)
public interface MenuFegin {

    @RequestMapping(value = "/admin/menu/findMenuZtree")
    List<ZtreeBean> findMenuZtree();

    @RequestMapping(value = "/admin/menu/findMenuZtreeByPeople")
    List<ZtreeBean> findMenuZtreeByPeople(@RequestParam("loginId")Long loginId);
}
